home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / snowball.swf / scripts / DefineSprite_412 / frame_2 / DoAction.as
Text File  |  2011-08-19  |  6KB  |  252 lines

  1. _root.allowreset = 0;
  2. mmessage = "";
  3. if(_root.new_world == 1)
  4. {
  5.    mmessage = _root.playername + ", you just broke the WORLD RECORD and became ARMOR GAMES WORLD SNOWBALL CHAMPION!! Wow!!";
  6.    _root.new_world = 0;
  7. }
  8. else if(_root.new_national == 1)
  9. {
  10.    mmessage = "A new NATIONAL record.  You\'re currently the best in the country, " + _root.playername + "!";
  11.    _root.new_national = 0;
  12. }
  13. else if(_root.new_regional == 1)
  14. {
  15.    mmessage = "You made a new regional record!  Way to go!  Now you are on the road to win more!";
  16.    _root.new_regional = 0;
  17. }
  18. else if(_root.new_hometown == 1)
  19. {
  20.    mmessage = "You are now the BEST snowballer in your hometown, " + _root.playername + ".  A great achievement.";
  21.    _root.new_hometown = 0;
  22. }
  23. else if(_root.new_backyard == 1)
  24. {
  25.    mmessage = "Hi there... new Backyard Champ!  One more championship to add to your record.";
  26.    _root.new_backyard = 0;
  27. }
  28. else if(_root.new_world == 2)
  29. {
  30.    mmessage = _root.playername + ", you just broke your own World Record!";
  31.    _root.new_world = 0;
  32. }
  33. else if(_root.new_national == 2)
  34. {
  35.    mmessage = "A new NATIONAL record from you, " + _root.playername + "!";
  36.    _root.new_national = 0;
  37. }
  38. else if(_root.new_regional == 2)
  39. {
  40.    mmessage = "You made a new regional record!";
  41.    _root.new_regional = 0;
  42. }
  43. else if(_root.new_hometown == 2)
  44. {
  45.    mmessage = "You are still the BEST snowballer in your hometown, " + _root.playername + ".  You beat your own record.";
  46.    _root.new_hometown = 0;
  47. }
  48. else if(_root.new_backyard == 2)
  49. {
  50.    mmessage = "You have perfected your Backyard Record by beating it.";
  51.    _root.new_backyard = 0;
  52. }
  53. else if(_root.yourmanager == "Danny")
  54. {
  55.    if(_root.weight > 1800)
  56.    {
  57.       mmessage = "Great job!";
  58.    }
  59.    else
  60.    {
  61.       o = random(5);
  62.       switch(o)
  63.       {
  64.          case 0:
  65.             mmessage = "You can do better next time.";
  66.          case 1:
  67.             mmessage = "It\'s all OK.  There are other guys worse than you.";
  68.          case 2:
  69.             mmessage = "There must be something wrong with the snowball.";
  70.          case 3:
  71.             mmessage = "That one had a lot of potential.";
  72.          case 4:
  73.             mmessage = "Today\'s snow is not so great.  The snow is thin.";
  74.       }
  75.    }
  76. }
  77. else if(_root.yourmanager == "Carla")
  78. {
  79.    if(_root.weight > 1800)
  80.    {
  81.       mmessage = "Wow! Awesome Score!";
  82.    }
  83.    else
  84.    {
  85.       o = random(5);
  86.       switch(o)
  87.       {
  88.          case 0:
  89.             mmessage = "Ummm... those obstacles suck, don\'t they?";
  90.          case 1:
  91.             mmessage = "Too bad... you could have done better.";
  92.          case 2:
  93.             mmessage = "Ahh!  Ahh!  Come on!";
  94.          case 3:
  95.             mmessage = "Good effort there.";
  96.          case 4:
  97.             mmessage = "Not good enough.";
  98.       }
  99.    }
  100. }
  101. else if(_root.yourmanager == "Aomi")
  102. {
  103.    if(_root.weight > 1800)
  104.    {
  105.       mmessage = "Alright... YATTA!!";
  106.    }
  107.    else
  108.    {
  109.       o = random(5);
  110.       switch(o)
  111.       {
  112.          case 0:
  113.             mmessage = "Baka!  That was not that great.";
  114.          case 1:
  115.             mmessage = _root.playername + ", I believe you can do better than that.";
  116.          case 2:
  117.             mmessage = "No way. No way.  Again!  Again!";
  118.          case 3:
  119.             mmessage = "Roll a bigger one and I\'ll double your pay.";
  120.          case 4:
  121.             mmessage = "Ahhh.  Hmmm.  You are frustrating.";
  122.       }
  123.    }
  124. }
  125. else if(_root.yourmanager == "Johnson")
  126. {
  127.    if(_root.weight > 1800)
  128.    {
  129.       mmessage = "Not bad.  Not bad.";
  130.    }
  131.    else
  132.    {
  133.       o = random(5);
  134.       switch(o)
  135.       {
  136.          case 0:
  137.             mmessage = "Is that ALL you\'ve GOT?!  You weakling.";
  138.          case 1:
  139.             mmessage = "You failed. Get down and give me 20.";
  140.          case 2:
  141.             mmessage = "What a miserable effort.";
  142.          case 3:
  143.             mmessage = "Even my grandma can do better than this.";
  144.          case 4:
  145.             mmessage = "If you do that again I will roll you up into a snowball.";
  146.       }
  147.    }
  148. }
  149. else if(_root.yourmanager == "Maximillion")
  150. {
  151.    if(_root.weight > 1800)
  152.    {
  153.       mmessage = "Splendid.  A big fat snowball.";
  154.    }
  155.    else
  156.    {
  157.       o = random(5);
  158.       switch(o)
  159.       {
  160.          case 0:
  161.             mmessage = "Bah!";
  162.          case 1:
  163.             mmessage = "That\'s all?  I\'d better go to sleep.";
  164.          case 2:
  165.             mmessage = "No more food for you until you get a bigger snowball.";
  166.          case 3:
  167.             mmessage = "Even I can roll a bigger snowball.";
  168.          case 4:
  169.             mmessage = "Your effort is OK but you seem distracted.";
  170.       }
  171.    }
  172. }
  173. w = random(10);
  174. if(w == 1)
  175. {
  176.    _root.worldrecord += random(10);
  177.    _root.worldchampion = _root["aip" + (random(60) + 1)];
  178. }
  179. n = random(8);
  180. if(n == 1)
  181. {
  182.    currenter = _root.nationalrecord;
  183.    _root.nationalrecord += random(17);
  184.    while(_root.nationalrecord >= _root.worldrecord)
  185.    {
  186.       _root.nationalrecord--;
  187.    }
  188.    if(_root.nationalrecord == currenter)
  189.    {
  190.       n = 0;
  191.    }
  192.    else
  193.    {
  194.       _root.nationalchampion = _root["aip" + (random(60) + 1)];
  195.    }
  196. }
  197. r = random(6);
  198. if(r == 1)
  199. {
  200.    currenter = _root.regionalrecord;
  201.    _root.regionalrecord += random(25);
  202.    while(_root.regionalrecord >= _root.nationalrecord)
  203.    {
  204.       _root.regionalrecord--;
  205.    }
  206.    if(_root.regionalrecord == currenter)
  207.    {
  208.       r = 0;
  209.    }
  210.    else
  211.    {
  212.       _root.regionalchampion = _root["aip" + (random(60) + 1)];
  213.    }
  214. }
  215. h = random(4);
  216. if(h == 1)
  217. {
  218.    currenter = _root.hometownrecord;
  219.    _root.hometownrecord += random(50);
  220.    while(_root.hometownrecord >= _root.regionalrecord)
  221.    {
  222.       _root.hometownrecord--;
  223.    }
  224.    if(_root.hometownrecord == currenter)
  225.    {
  226.       h = 0;
  227.    }
  228.    else
  229.    {
  230.       _root.hometownchampion = _root["aip" + (random(60) + 1)];
  231.    }
  232. }
  233. b = random(3);
  234. if(b == 1)
  235. {
  236.    currenter = _root.backyardrecord;
  237.    _root.backyardrecord += random(100);
  238.    while(_root.backyardrecord >= _root.hometownrecord)
  239.    {
  240.       _root.backyardrecord--;
  241.    }
  242.    if(_root.backyardrecord == currenter)
  243.    {
  244.       b = 0;
  245.    }
  246.    else
  247.    {
  248.       _root.backyardchampion = _root["aip" + (random(60) + 1)];
  249.    }
  250. }
  251. stop();
  252.